/**
 * 公共工具
 */
export class LubanCommonUtils{

    public static getURLParams1 = {
        a:1
    }

    /**
     * 获取url上的参数
     */
    public static getURLParams = function (){
        let url = window.location.search;
        let theRequest:any = {};
        if (url.indexOf("?") != -1) {
            let str = url.substr(1);
            let params = str.split("&");
            for (let i = 0; i < params.length; i++) {
                theRequest[params[i].split("=")[0]] = (params[i].split("=")[1]);
            }
        }
        return theRequest;
    }
}
